package com.zodiac.app.szse.sse.company;

import com.zodiac.app.szse.sse.SseClient;
import com.zodiac.app.szse.sse.company.dto.SseCompanyOverviewRequest;
import com.zodiac.app.szse.sse.company.dto.SseCompanyOverviewResponse;

/**
 * 上交所-公司相关情况接口
 */
public class SseCompanyApi {
    private static final String COMPANY_OVERVIEW_QUERY_URL = "http://query.sse.com.cn/commonQuery.do";

    /**
     * 公司概况
     *
     * @param request
     * @return
     */
    public SseCompanyOverviewResponse companyOverviewQuery(SseCompanyOverviewRequest request) {
        return SseClient.create(COMPANY_OVERVIEW_QUERY_URL).execute(request, SseCompanyOverviewResponse.class);
    }

}
